﻿using System;
//
namespace PerceptiveMCAPI.Types
{
   public class campaignsResults
   {
      public string id { get; set; }
      public int web_id { get; set; }
      public string list_id { get; set; }
      public Int64 folder_id { get; set; }
      public string title { get; set; }
      public EnumValues.campaign_type type { get; set; }
      public DateTime create_time { get; set; }
      public DateTime send_time { get; set; }
      public int emails_sent { get; set; }
      public EnumValues.campaign_status status { get; set; }
      public string from_name { get; set; }
      public string from_email { get; set; }
      public string subject { get; set; }
      public string to_email { get; set; }
      public string archive_url { get; set; }
      public bool inline_css { get; set; }
      //
      public string analytics { get; set; }
      public string analytics_tag { get; set; }
      // --- 
      public bool authenticate { get; set; }
      public bool ecomm360 { get; set; }
      public bool auto_tweet { get; set; }
      public bool timewarp { get; set; }
      // --- 
      public bool track_clicks_text { get; set; }
      public bool track_clicks_html { get; set; }
      public bool track_opens { get; set; }
      public string segment_text { get; set; }
      public campaignSegmentOptions segment_opts { get; set; }

      public campaignsResults()
      {
         type = EnumValues.campaign_type.NotSpecified;
         create_time = DateTime.MinValue;
         send_time = DateTime.MinValue;
         status = EnumValues.campaign_status.Unknown;
         segment_opts = new campaignSegmentOptions();
      }

      public override string ToString()
      {
         return string.Format( "id: {0}, web_id: {1}, list_id: {2}, folder_id: {3}, title: {4}, type: {5}, subject: {6}, emails_sent: {7}, send_time: {8}",
            id, web_id, list_id, folder_id, title, type, subject, emails_sent, send_time );
      }
   }
}
